package com.Controller;

import com.Component.UserComponent;
import com.Service.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ling
 * Date: 2022-11-14
 * Time: 21:20
 */
@Controller
public class UserController2 {
   @Autowired
   @Qualifier(value = "user1")
    private User user;

    public void doUserController2() {
        System.out.println( user.toString());
        System.out.println("doUserController2");
    }
}
